#ifndef __EssPeer_H__
#define __EssPeer_H__

class  EssPeer
{
public:
	EssPeer();
	EssPeer(SOCKET s);
	virtual ~EssPeer();

	virtual bool createSock();
	virtual bool bindSock(const char* localIP, u_short localPort);
	virtual bool closeSock();

	inline virtual SOCKET getSocket() const { return mSocket; };
	virtual bool getSockName(char** ip, u_short* port);
	virtual bool getPeerName(char** ip, u_short* port);

protected:
	SOCKET mSocket;
private:
};

#endif //__EssPeer_H__